<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRankSonBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rank_son_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shop_id')->comment('商家id');
            $table->integer('real_hot',10)->comment('真实热度');
            $table->integer('changed_hot',10)->comment('修改后热度');
            $table->integer('belonged_rank_id')->comment('所属榜单id');
            $table->integer('belonged_rank')->comment('所属榜单排名');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('rank_son_busin');
    }
}
